Corrected bug when exporting ccd file.