Fixed corect output of template name/header