Continuity mistake: When Bart and Lisa wake Homer and Marge up in the morning of the Duff Gardens visit, the kids are standing by the bed. However, when Marge throws the mouldy sandwich in the bin in the next shot and Homer collapses, the kids have disappeared. In the next shot, they are back again.
Continuity mistake: When the police talk about the bumper cars getting stolen by Jimbo Jones, you see him and his 2 friends riding off in bumper cars. From the side angle, there are 2 blue and 1 red car, but from the rear view, there is 1 blue, l red, and 1 green car.
Continuity mistake: In this episode Hans Moleman's skin colour is yellow. However in "Duffless " his skin colour is brown and in other episodes it is a dark yellow-green colour.
Continuity mistake: When Selma is on video at the end of the episode, the iguanas's eyes change from yellow to white during the scene, but not between shots.
Factual error: When Selma throws Moleman out of her car, the passenger door is hinged at the rear instead of The Front as it should be on a relatively-modern hatchback, and the window crank is visible on the outside of the door.
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