Fixed broken document creation.
Merge pull request #226 from fredericbonjour/Admin

Fixed broken document creation.