Corrected template copying issue.