Fix capture with really large buffers