Solved bug on autocomplete