fixes a typo in upgrade script