fix for advanced search