diff --git a/arkindex_worker/worker/entity.py b/arkindex_worker/worker/entity.py
index 3f3876e1a79869ab795984383aeee92f81caf496..9992b5491bf8a6a09c425ec37d297a1ed8ec4bd1 100644
--- a/arkindex_worker/worker/entity.py
+++ b/arkindex_worker/worker/entity.py
@@ -93,10 +93,10 @@ class EntityMixin(object):
             entity, str
         ), "entity shouldn't be null and should be of type str"
         assert (
-            offset and isinstance(offset, int) and offset >= 0
+            offset is not None and isinstance(offset, int) and offset >= 0
         ), "offset shouldn't be null and should be a positive integer"
         assert (
-            length and isinstance(length, int) and length > 0
+            length is not None and isinstance(length, int) and length > 0
         ), "length shouldn't be null and should be a strictly positive integer"
         if self.is_read_only:
             logger.warning(