bug on search fixed

fixed c++ issue, etc
Merge pull request #155 from camilin87/kmoya-dev-branch

bug on search fixed