fix syntax error in template vars