The Nightmare After Krustmas - S28-E10
Continuity mistake: When Krusty is in the hospital, the style of his bed rail changes. (00:04:20 - 00:05:35)
The Nightmare After Krustmas - S28-E10
Continuity mistake: When Homer moves Maggie's crib closer to the gnome, the wall outlet under the light switch has nothing plugged in, but in the next shot as Homer exits the bedroom, a nightlight is suddenly plugged in. (00:10:20)
The Nightmare After Krustmas - S28-E10
Continuity mistake: While Krusty is in the hospital talking to Sophie, he pops the IV line from his arm so the tubing hangs down from the fluid bag. But when Krusty tells Sophie that he knows she's reaching out, suddenly Krusty's IV line is properly inserted in the cannula again, only to change back to the tubing hanging down. Also, the white pillow propping up Krusty's foot vanishes and reappears during these shots. (00:05:15)
The Nightmare After Krustmas - S28-E10
Continuity mistake: When Bart opens the door for Krusty and Sophie, Bart is standing on a floor mat, but in the next exterior shot, that indoor floor mat has vanished. Other changes include the cane's handle within Krusty's grip facing the opposite way, as well as Krusty's and Sophie's positions at the outdoor purple mat. (00:06:50)
The Nightmare After Krustmas - S28-E10
Continuity mistake: When Krusty is at the hospital, in the first shot, Krusty's IV tubing is attached to the fluid bag over the bed's safety rail, but in following shots, the tubing is inserted between the rail bars. (00:04:00)
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