Temporary hack for generated names
Fix a erroneous recursive call in the Pattern module