Fix upgrade_available