Document::create declaration fix