fix problem in cc which may happen in some cases