fix the bug of search
Merge pull request #25 from caok/master

fix the bug of search