Fix bug in doSearch of webservice