fix upgrade command error