fix bug (crashing while respawn)