fix bugs, find more bugs
bugs happend in typeahead plugin when use autocompletion