diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c
index 167d74d35c5f1b91c9d65fa1ac91cbe9819c6230..ea12df1ec3bc34b578deb91305ea6980c8de8ec5 100644
--- a/modules/net/dap_chain_node_cli_cmd.c
+++ b/modules/net/dap_chain_node_cli_cmd.c
@@ -7411,6 +7411,7 @@ int com_tx_history(int a_argc, char ** a_argv, void **a_str_reply)
         json_object * json_count_obj= json_object_new_object();
         json_object_object_add(json_count_obj, "Number of transaction", json_object_new_uint64(l_chain->callback_count_tx(l_chain)));
         json_object_array_add(*json_arr_reply, json_count_obj);
+        return DAP_CHAIN_NODE_CLI_COM_TX_HISTORY_OK;
     }
 
     if (json_obj_out) {