Fixed numbering of template order.