Fixed an incorrect calculation of health.