fix syntax error
protect history from importprivkey