restore last inconsistency in patterngenerator.py