fixed player leaving bug