fix cpd output file