Fix generating xml namespaces