[#9] Fixed the upgrade problem.