Model issue fix in template

Model issue fixed in template.js