diff --git a/Manager/UserManager.php b/Manager/UserManager.php
index <HASH>..<HASH> 100644
--- a/Manager/UserManager.php
+++ b/Manager/UserManager.php
@@ -1531,7 +1531,7 @@ class UserManager
                 $user->addOrganization($default);
                 $this->objectManager->persist($user);
 
-                if ($i % self::MAX_EDIT_BATCH_SIZE) {
+                if ($i % self::MAX_EDIT_BATCH_SIZE == 0) {
                     $this->objectManager->forceFlush();
                 }
             }
[CoreBundle] Adding missing == 0 for modulo check.