22 Short Films About Springfield - S7-E21
Continuity mistake: When Skinner and the superintendant are having lunch, Skinner brings in four burgers. The superintendant takes one, and suddenly there is only one left.
22 Short Films About Springfield - S7-E21
Continuity mistake: Lisa comes out of the hairdresser's with a new hairstyle which Nelson laughs at. She is walking away to Nelson's right yet when Nelson's being chased by a tall man later and flees around a corner to his left she's suddenly standing there.
22 Short Films About Springfield - S7-E21
Revealing mistake: A black line briefly appears on Apu's forehead while he's tossing the tofu dog around.

22 Short Films About Springfield - S7-E21
Other mistake: When Chalmers and Skinner are having lunch with hamburgers, Chalmers bites it. When he opens it, the bread's slice is bitten but the meat is not.
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