diff --git a/modules/mempool/dap_chain_mempool.c b/modules/mempool/dap_chain_mempool.c
index 55425201f6be8e8308368d232b9c13a095de5420..c223314cc5fca90719020134c19e3400ef1575e9 100644
--- a/modules/mempool/dap_chain_mempool.c
+++ b/modules/mempool/dap_chain_mempool.c
@@ -1269,7 +1269,7 @@ void dap_chain_mempool_filter(dap_chain_t *a_chain, int *a_removed){
             l_removed++;
             log_it(L_NOTICE, "Removed datum from mempool with \"%s\" key group %s. The size of the datum defined by the "
                              "function and the size specified in the record do not match.", l_objs[i].key, l_gdb_group);
-            dap_global_db_del_sync(l_objs[i].key, l_gdb_group);
+            dap_global_db_del_sync(l_gdb_group, l_objs[i].key);
             continue;
         }
         //Filter hash
@@ -1281,7 +1281,7 @@ void dap_chain_mempool_filter(dap_chain_t *a_chain, int *a_removed){
             DAP_DELETE(l_hash_content_str);
             log_it(L_NOTICE, "Removed datum from mempool with \"%s\" key group %s. The hash of the contents of the "
                              "datum does not match the key.", l_objs[i].key, l_gdb_group);
-            dap_global_db_del_sync(l_objs[i].key, l_gdb_group);
+            dap_global_db_del_sync(l_gdb_group, l_objs[i].key);
             continue;
         }
         DAP_DELETE(l_hash_content_str);
@@ -1290,7 +1290,7 @@ void dap_chain_mempool_filter(dap_chain_t *a_chain, int *a_removed){
             l_removed++;
             log_it(L_NOTICE, "Removed datum from mempool with \"%s\" key group %s. The datum in the mempool was "
                              "created after the %s.", l_objs[i].key, l_gdb_group, l_cut_off_time_str);
-            dap_global_db_del_sync(l_objs[i].key, l_gdb_group);
+            dap_global_db_del_sync(l_gdb_group, l_objs[i].key);
         }
     }
     dap_global_db_objs_delete(l_objs, l_objs_size);