correct Document.init()