Autocomplete issue

Fix a problem with autocomplete widget.