Use $timeout to fix term complete problem

Sometimes the autocomplete list wouldn't go away when a term was selected.