Continuity mistake: The offensive baseball cap that is in the Kwik-E-Mart changes from green to blue during the episode.
Continuity mistake: After Apu & Homer find Jasper in the freezer. Apu removes a note from his hand. Minutes later Dr. Nick walks in the door you see Jasper still holding the note then disappears again when Dr. Nick opens the freezer door.
Continuity mistake: When Lisa comes down the stairs prior to watching "When Buildings Collapse", the TV screen is near enough in the corner of the living room and can be seen from the stairs. When Lisa enters the living room, the TV has moved further into the room. Subsequent shots of the TV move it so far into the room that it would not have been possible to see it from the stairs at all in the first place.
Continuity mistake: When Kent Brockman gives his after thought on Lisa's speech, his hair and clothes have changed colors.
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