Fixed upgrade problem.