#577 prevent monkeypatch in lms context