fix to globalsize for simplegenerator