fix player bug