fix inversion between CID name and CID number