Fix another template bug