fixed adv-search bug