fixed a upgrade 5 bug