Fix to create the generator.