fixed player crash