fix bug: cid to int