Substitute only the variables in the scc