I'm Goin' to Praiseland - S12-E19
Revealing mistake: In one of the scenes (I think it is when they first discover the alleged 'miracle') you can see people in the background walking out of the park. But they are not walking out of the park at all, they are walking into the wall.
Revealing mistake: When Lisa wraps herself in Marge's arms right before she falls asleep, the inside of her mouth turns yellow.
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