Bug resolved in  support for templates that are sub-documents