Patch for capture.c