fix autocomplete problem