diff --git a/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml b/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml
index e7003de..fb2221c 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 8ebb1ac..ba9f759 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
# coding=utf-8
from setuptools import setup, find_packages
-VERSION = "1.0.1.post1"
+VERSION = "1.0.1.post2"
setup(
name="pytrustnfe",