fixed bugs in searchFFL