Fixed behaviour for some buttons in advanced search tab.