fixed xml bug, template caused errors in the xsl