fixed a buf in getTemplateObj