re-fix autocomplete histories