fixed issues with autocomplete field