fix a bug in self loop during scc collapse