Fix player position when moving.