master: fix getOutstandingDebt() and getOutstandingClaim()