Fixed bug on autocomplete