Fixed pathfinding.