Fix upgrade command.