Fixed error in hp calc for real.