fix cpd