fixed Autocomplete query error