Fix the template service issue.