Fixed a couple of issues with document templates.