fix variable name in template