Fixed autocomplete init issue