second template bug