Fixed pathfinding for real.