fix pattern list