Fixed bug in CdmUtils