fix a bug for SCC in CG