Checkgroup genscript fix