[3.8] Fix upgrade command