fix a typo in the upgrade script