Fix calculating balance for pockets.