fixed ledger invalid parsing