Fix crash on player death