diff --git a/modules/common/dap_chain_datum_tx_items.c b/modules/common/dap_chain_datum_tx_items.c
index c4097cc158a84d74a00ab89fb660cd202cdb3670..72fd30655ea5f136d93918bff545019d441d19be 100644
--- a/modules/common/dap_chain_datum_tx_items.c
+++ b/modules/common/dap_chain_datum_tx_items.c
@@ -691,7 +691,7 @@ byte_t *dap_chain_datum_tx_item_get_data(dap_chain_tx_tsd_t *a_tx_tsd, int *a_ty
     if (!a_tx_tsd || !a_type || !a_size)
         return NULL;
 
-    *a_size = a_tx_tsd->header.size;
+    *a_size = ((dap_tsd_t*)(a_tx_tsd->tsd))->size;
     *a_type = ((dap_tsd_t*)(a_tx_tsd->tsd))->type;
     return ((dap_tsd_t*)(a_tx_tsd->tsd))->data;
 }