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

fix the bug of search