Small change to iteration through template list.