search bug fixes