search, adv search bug fixes