fixes #5970, prevents bugs in the future

this is not an issue at the moment but will become one should maxHealth ever get changed.