fix handling matcher.pattern.x