add monkeypatch so that language indexer tolerate multipathcriterion