Fix upgrades.