fix upgrade option