bug fix: multiple templates for single doc