Monty Can't Buy Me Love - S10-E21
Continuity mistake: Ralph Wiggum is seen riding the train inside the mall, but is seen some seconds later amongst the crowd of people still waiting to enter the store.
Monty Can't Buy Me Love - S10-E21
Continuity mistake: Bart is next to Homer when Marge says "Where did you get that champagne?", but in the next shot, a clown is in the spot Bart was.
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