fixing removal of upgrades.