diff --git a/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml b/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml
index d609cf8..7aba755 100644
--- a/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml
+++ b/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml
@@ -6,7 +6,7 @@
false
{{ nfse.data_inicio }}
{{ nfse.data_fim }}
- 1
+ {{ nfse.lista_rps|lenght }}
{{ nfse.total_servicos }}
{{ nfse.total_deducoes }}
diff --git a/setup.py b/setup.py
index 94f3025..501098f 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
from setuptools import setup, find_packages
-VERSION = "1.0.33.post1"
+VERSION = "1.0.33.post2"
setup(