fix autocomplete enter bug