fix advance search issue