fixed autocomplete breaking input history