Fix bug: add missed patternType