fixing autocomplete init problems