Fix upgradeVersion error.