Apply Pattern Modifiers to solve bug

issue #7