Fix calculating per-address balances.