fixed generator.pl
added generator fix