Other mistake: In the scene where the Simpsons are viewing the path of the Corvair's Re-entry, the blip representing the spaceship crosses the entire US from North-West to South-East in about three seconds. This is really impossible, even for something going as fast as a spaceship on re-entry would be.
Continuity mistake: When Homer is in space, when he is about to free the ants, the crisps that he opened earlier have disappeared from the background. This type of mistake happens again when both the crisps and the ants disappear and reappear between shots.
Continuity mistake: When Barney becomes his old self again at the training center, he gets on a jetpack while holding a bottle. In the next shot while he is in the air, the bottle is gone.
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