Upgrade command fixed