fixed an XML bundle templating bug