fixed issue that caused ledger to be reimported on restart