fixed cdclear when using cdtransform