fix for the patternElement[15] which was not reset