diff --git a/pybis/src/python/CHANGELOG.md b/pybis/src/python/CHANGELOG.md
index 5ed3891a4524ff8a4327926456d5bb6ca2bcd2f4..27cbb7d42c07aeb949315a00dd709f6da5bedf37 100644
--- a/pybis/src/python/CHANGELOG.md
+++ b/pybis/src/python/CHANGELOG.md
@@ -1,3 +1,7 @@
+## Changes with pybis-1.10.2
+
+* typo bugfix
+
 ## Changes with pybis-1.10.1
 
 * fixed a nasty threading bug: open threads are now closed when downloading or uploading datasets
diff --git a/pybis/src/python/pybis/__init__.py b/pybis/src/python/pybis/__init__.py
index df207bd89b7c849af3505368c59aa3749fe7c077..4eea0a84fdadaa16aa2e12fe94dc81ded8613a08 100644
--- a/pybis/src/python/pybis/__init__.py
+++ b/pybis/src/python/pybis/__init__.py
@@ -1,7 +1,7 @@
 name = 'pybis'
 __author__ = 'Swen Vermeul'
 __email__ = 'swen@ethz.ch'
-__version__ = '1.10.1'
+__version__ = '1.10.2'
 
 from . import pybis
 from .pybis import Openbis
diff --git a/pybis/src/python/pybis/dataset.py b/pybis/src/python/pybis/dataset.py
index 6e893eb7d11100fe840e16e97cc7ea4b6a51f0b7..ef6002322fa17ef09104cdebd70efee3a0c18662 100644
--- a/pybis/src/python/pybis/dataset.py
+++ b/pybis/src/python/pybis/dataset.py
@@ -633,7 +633,7 @@ class DataSetUploadQueue():
         """This method is called at the end of a with statement.
         """
         # stop the workers
-        for i in self.workers:
+        for i in range(self.workers):
             self.upload_queue.put(None)
 
     def put(self, things):
diff --git a/pybis/src/python/setup.py b/pybis/src/python/setup.py
index 9f870a55dee228d5fab7046c55a908f94880b4e9..b54537442f34c20e2960f837185e28c8e85910e2 100644
--- a/pybis/src/python/setup.py
+++ b/pybis/src/python/setup.py
@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
 
 setup(
     name='PyBIS',
-    version= '1.10.1',
+    version= '1.10.2',
     author='Swen Vermeul • ID SIS • ETH Zürich',
     author_email='swen@ethz.ch',
     description='openBIS connection and interaction, optimized for using with Jupyter',