fixed CLI history save