correction for homol_nset>1 and waga_homology(iset)=0 to prevent sigsegv