fix logic in balance calculation for confirmed balance.