Don't Fear The Roofer - S16-E16
Audio problem: When Marge says "You're drooling on my goodwill pile", her mouth doesn't match her voice.
Don't Fear The Roofer - S16-E16
Revealing mistake: When Homer sits on Lenny's cake in Moe's bar, some of the frosting appears to stay in mid air, and when the frosting is on the wall, it doesn't slide to the ground like frosting would.
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