[Fix] Upgrade script didn't run cleanly.