Patch to fix error in calc_scc.