Fixed upgrade parameter parsing