diff --git a/modules/type/dag/dap_chain_cs_dag.c b/modules/type/dag/dap_chain_cs_dag.c
index d392889bb785d87e44c5b7c3f71066fad1856daa..84dc44b8c4ecf071cd4d51321c4d1e21f6ead521 100644
--- a/modules/type/dag/dap_chain_cs_dag.c
+++ b/modules/type/dag/dap_chain_cs_dag.c
@@ -1599,12 +1599,12 @@ static int s_cli_dag(int argc, char ** argv, void **a_str_reply)
                     break;
 
                 }
-                if ( l_event ){                    
+                if ( l_event ) {
+                    char buf[DAP_TIME_STR_SIZE];
                     json_object_object_add(json_obj_event,"Event hash", json_object_new_string(l_event_hash_str));
 
                     // Round info
                     if ((l_from_events_str && strcmp(l_from_events_str,"round.new") == 0) && l_round_item) {
-                        char buf[DAP_TIME_STR_SIZE];
                         json_object_object_add(json_obj_event,"Round info", json_object_new_string(" "));
                         json_object_object_add(json_obj_event,"tsigns reject", json_object_new_uint64(l_round_item->round_info.reject_count));
                         json_object_object_add(json_obj_event,"ts_update", json_object_new_string(buf));