The Bart Wants What It Wants - S13-E11
Other mistake: Ned Flanders wins the $100 bill, but on the side it says $50.
Little Girl in the Big Ten - S13-E20
Other mistake: Sherri and Terri are seen participating in the second grade gymnastics (as referred by the gym teacher), even though they're in the fourth grade.
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