avoid hacking assumption on @advanced_query ivar, now it works properly on adv search form too