Fixed the autocomplete problem with the enter key.