Fixing sccs algorithm.