Fix custom CDR error (thanks kpfleming)