search bug fix