Fix IllegalArgumentException with max health.