Fix "undefined" template issue.