fix to advanced search