diff --git a/patches/patch20200426-3.0.0/fix_unversioned.sql b/patches/patch20200426-3.0.0/fix_unversioned.sql
index a44cfead58b804012256093374d6c20edaf44305..069409d62e1bb495f5c487620d707b90266cbe72 100644
--- a/patches/patch20200426-3.0.0/fix_unversioned.sql
+++ b/patches/patch20200426-3.0.0/fix_unversioned.sql
@@ -80,20 +80,20 @@ BEGIN
                 AND t.nanos = l.nanos
                 AND t.username = l.username
                 AND t.realm  = l.realm )
-            WHERE l.entity_id = unversioned_id;
+            WHERE l.entity_id = unversioned_id AND unversioned_id > 99;
 
         -- insert single version into entity_version (for id<100)
         INSERT IGNORE INTO entity_version (entity_id, hash, version, _iversion,
             _ipparent, srid)
             SELECT
                 unversioned_id AS entity_id,
-                "bla" AS hash,
+                NULL AS hash,
                 SHA1(UUID()) AS version,
                 1 AS _iversion,
                 NULL AS _ipparent,
                 t.srid AS srid
             FROM transactions AS t
-            WHERE t.seconds = 0 AND t.nanos = 0;
+            WHERE t.seconds = 0 AND t.nanos = 0 AND unversioned_id<100;
 
 
     END LOOP;
diff --git a/patches/patch20200426-3.0.0/patch.sh b/patches/patch20200426-3.0.0/patch.sh
index 0799c7cbc1f81421aba6b8cf6c47ae1b43cb5209..f05118bcce3f3418d88eea9a68a00825526d393c 100755
--- a/patches/patch20200426-3.0.0/patch.sh
+++ b/patches/patch20200426-3.0.0/patch.sh
@@ -36,11 +36,8 @@ fi
 check_version $OLD_VERSION
 
 
-echo "feature_config.sql"
 mysql_execute_file $PATCH_DIR/feature_config.sql
-echo "versioning.sql"
 mysql_execute_file $PATCH_DIR/versioning.sql
-echo "fix_unversioned.sql"
 mysql_execute_file $PATCH_DIR/fix_unversioned.sql