Fixed the healthbar functions