Fix math for balances