Fix old upgrades