Adjustments to template

Fixed issues with unescaped parenthesis.