fix upgrade so it upgrades