fixed variable name in template.