diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml
index 87b0960..4bec6b6 100644
--- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml
+++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml
@@ -259,7 +259,7 @@
{% endfor %}
{% endif %}
- {{ prod.xPed }}
+ {{ NFe.infNFe.compra.xPed }}
{{ prod.nItemPed }}
{{ prod.nFCI }}
{% for rastro in prod.rastro %}
diff --git a/setup.py b/setup.py
index d7e1895..814f3f1 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
from setuptools import setup, find_packages
-VERSION = "1.0.36"
+VERSION = "1.0.37"
setup(