Fix player marker update function