bugfix: `Document.create` was freezing.
TODO