fixed small bug in ledger