Fixed a number of bugs in the ledger views.