fixed another template bug