Tree House of Horror VI - S7-E6
Continuity mistake: In "Attack of the 50 Foot Eyesores", the executive goes to the piano and you can see a penholder on his desk. But the camera angle changes to behind the piano in the next shot, the penholder has moved position and there are now more items on the desk.
Tree House of Horror VI - S7-E6
Continuity mistake: In "Nightmare on Evergreen Terrace", when the teacher hands out the papers before the test, you can see that in the desk sitting next to Bart is a student wearing green sunglasses and has blue hair. In the next shot, Martin is suddenly beside Bart.
Tree House of Horror VI - S7-E6
Continuity mistake: In "Nightmare on Evergreen Terrace", when Marge takes off her oven gloves you can see there is a plate beside her, but when she puts the gloves down in the next shot the plate has disappeared.
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