fix a bug in CDS