add the PatternLenght in the code, not saved and not in the PatternElement...