Update class.pathfinder.php