wig2bed : needed to reset loop counter