minor bugfixes
Merge pull request #42 from luuse/api-search-minor-bugfix

minor bugfixes