Other mistake: Near the beginning of the episode when Selma and Sideshow Bob arrive at the Simpsons' house, Bart and Lisa scream and hide behind Marge. Selma says "What the - ?" but the DVD subtitles say that Marge says it. It is shown "MARGE: What the - ?". (00:02:30)

Other mistake: How can Sideshow Bob make the "I H8 BART" licence plate if there are no number keys on the keyboard? (00:04:45)
Other mistake: When Sideshow Bob leaves Selma to watch MacGyver, the room opposite is 350. Later when he is being taken away by the police there is a room 44. It's unlikely these two numbers would be on the same floor.
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