Homer And Ned's Hail Mary Pass - S16-E8
Continuity mistake: Homer is on The Front lawn when the bus of tourists turn up and Mario comes out. Homer gets mad and throws trash cans at Mario, who runs away and climbs up into the tree house which is at the side of the house, but it should be at the back.
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