correct orders of args in Document.init()