set max upgrades, could not fix unswap glitch