Attempt to fix document creation issue