fixing an error caused by improper maximum health