fixed upgrade script not running