Correcting an upgrade script.