fix on row sums
Merge branch 'ledger' into testing