Fix calculation of account balance.