pathfinding fix