-fixed issue with upgrade count