Properly fixed race condition in BatchTransformationBuffer.