Raging Abe Simpson and His Grumbling Grandson in 'The Curse of the Flying Hellfish' - S7-E22
Continuity mistake: At Asa's funeral Burns and Grandpa both produce a key to unlock the compartment in the Hellfish monument, but even though they both take their keys out of the keyholes after turning them, all 9 keys are in place in the following shots.
Raging Abe Simpson and His Grumbling Grandson in 'The Curse of the Flying Hellfish' - S7-E22
Continuity mistake: Grampa loses his red slipper as he is pulled by Mr. Burns' boat. Later it is back on his foot.
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