fixing ledger parsing