fixed error on search
Merge pull request #708 from kurund/fix

fixed error on search