Fix Autocomplete. Input history implemented