fixed setInvulnerable