fix import of pattern