Fix subgenerator constructor name