Other mistake: While Homer is in Lisa's bedroom trying to make things right with her, there are three pictures taped to Lisa's mirror. After Homer tells her the music may help, in the next shot Homer walks over to stand behind Lisa. Those pictures taped to Lisa's mirror are weirdly behind Homer's reflection, as if the pictures are taped to the wall behind Homer. Three shots later, when Homer tells Lisa he can fix the dollhouse, his reflection is accurate in relation to those three pictures taped to the mirror. (00:19:20)
Continuity mistake: When Lisa opens the classroom door (opposite the teacher's desk) and is shocked to see Miss Hoover has returned, note the door opens outward (into the hallway) and the doorknob is on the right side of the door. When Lisa runs out of the classroom, that door now opens inward and the doorknob is on the left side of the door. (00:13:40)
Continuity mistake: After Lisa paces around the school hallway practising how to ask Mr. Bergstrom over for dinner, when she opens the classroom door there's a backplate behind the doorknob and a lower panel under the window, but when she sees Miss Hoover and gasps, the backplate and lower panel have both disappeared. (00:13:35)
Continuity mistake: When Miss Hoover returns to class she writes "psychosomatic" on the blackboard, but when Lisa runs out of class the word has vanished from the board. (00:13:55)
Revealing mistake: When Marge is yelling at Homer at the dinner table after Lisa goes to her room, the outline of Marge's mouth over her neck when her lips are moving shows the neck line in her lips. (00:18:50)
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