template: bug fix.