fixed nested loops with multitargets and nested generators