The Boy Who Knew Too Much - S5-E20
Factual error: Apu (an immigrant from India) could not have been selected for the jury because he is not an American citizen, and this was before he became a naturalized citizen in "Much Apu About Nothing".
Factual error: As Bart, Homer, Ned and Todd drift away from land in their boat, we see the clouds moving away. The clouds would not move that fast at the speed that the boat was going.
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