fix template (braces need to be escaped)