BUGFIX: Fixed another issue related to pathfinding.