Fixed template syntax errors