fix crash on player respawn