fixed the autocomplete code. (and Tab is the new autocomplete character)