fix for health calculations