A good example of this was Einstein, who called the cosmological constant, which he introduced when he was trying to make a static model of the universe, the biggest mistake of his life.
Because Einstein thought he needed to model a static universe, he introduced his "cosmological fudge factor" to balance the attractive gravity of matter.