Fixed a bug in advanced search form