advanced search fixed