Fixed upgrade command