Prevent_upgrade logic