fix bugs in searcher.py