The Bart Wants What It Wants - S13-E11
Continuity mistake: When Bart is in the ice cream parlor breaking up with Greta, the waiter tells him "We get that a lot around here" and point over to Chief Wiggum and Lou sitting behind and to the left of Bart. Bart turns his head all the way to the side to see them. The focus then goes to Chief Wiggum and Lou, but when their part is done and the "camera" goes back to Bart and Greta, the policemen are sitting behind and to the right of Greta, so that Bart would not have had to turn his head to see 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