fix updating of ledger entries when updating transaction