fix some bugs of ch08/search.py