Continuity mistake: When Homer shows his "incriminating photos," you can see that in them, he is bald. We know from several previous episodes that Homer had hair when Bart was a baby. He even has a bit of hair when Lisa is born.
Continuity mistake: When Tony Hawk and Homer compete against each other on the skateboards, Bart is on Tony's starting side. When Homer knocks Hawk off his skateboard, Bart is now on the side that Homer started on.
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