Fixed untested bug with max health setting.