Fix the Document ctor invocation