attempt at fixing the player.pos crash