Factual error: When you see Ned Flanders put the earth back inside the hole, he puts it back in much faster than is possible. In one shot, he is only just starting to put it back in, then you see Bart who talks to himself for a few seconds, then back to Flanders, who has finished burying what is later to be revealed as the plant that he (Ned) drowned.
Continuity mistake: In the scene where Lisa runs into the attic as she dives behind the chest she rattles a bird cage, later when Ned faints you can see that the bird cage has disappeared.
Revealing mistake: When Bart is watching Rod and Todd walk over to Ned Flanders, you can see their reflections on Bart's telescope. Their reflections do not match their actual positions.
Other mistake: When Bart is looking at space through his telescope, Earth can be seen through the telescope despite him being on Earth.
Other mistake: When Bart is looking at Doctor Hibbert on the rowing machine, all the pictures on the walls behind him don't have faces on them.
Answer: I'm not sure if this is the one you're thinking of, but an episode of "Ray Bradbury Theatre," called "A Sound of Thunder," dealt with a similar matter: a group of hunters travel back in time to hunt dinosaurs, only to find things have changed when they get back because someone stepped on a butterfly.
Xofer