fix NextCaptureCD bug