fix upgrade profile not working