Fixed template's syntax errors. refs #418