fix activity upgrade count issue