fix autocomplete issue