fixing player bug