Fix pathfind api