fix autocomplete fail