fix bug with pathfinding