bug with setting max hp