fix autocomplete generate