Who Shot Mr. Burns? (2) - S7-E1
Other mistake: As Chief Wiggum is being interviewed about the fugitive, his arm is shown to be in a cast due to the police van crashing at the Krusty Burger Drive-Thru earlier on. Yet when they get to the hospital, his arm is completely fine. (00:17:30 - 00:19:00)
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