Fixed template cache issue.