close fields group later and print correct number of loops
close fields group later and print correct number of loops

pdebuyl/RMPCDMD,pdebuyl-lab/RMPCDMD,pdebuyl/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD