fix bug at player death