fixed failure handler on upgrade.html