Fix monkeypatch

@willkg r?