advanced search bug fixed