fixed bug with autocomplete dialog