- Fixed template counting issue.