fix fix_upgrade