Fixed bug in cid.