I Love Lisa - S4-E15
Continuity mistake: When Homer and Bart are watching a clip of Sideshow Mel on wowee sauce and Bart then says "I'd give anything to go to that show", he has nothing in his hand. The shot cuts to Homer and he then says "I'd sell my first born son" and then the shot cuts back to Bart. When the shot cuts back to Bart, a Buzz cola can has appeared in his hand out of nowhere. (00:08:20)
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