Revealing mistake: In the opening sequence's parody of the series where Bart becomes fat and comes out from school on his skateboard, he theoretically should go down the stairs, instead his silhouette suddenly climbs up on the wall next to him, revealing a mistake in the post-production's animation. (00:06:05)
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