[Pathfinding] Fixed small mistake.