Fix compiler warning
Fix transaction ledger entry regression
Fix regression test