search - bug fix