Patch for cde and cdf