fixed some autocomplete problems