fix CC calculate