diff --git a/src/local_dc/local_dc.c b/src/local_dc/local_dc.c
index b1d200d098be268105fa10040847e313050c5103..7c474d9160b81e5be7b29e73318c12c7fee6dd94 100644
--- a/src/local_dc/local_dc.c
+++ b/src/local_dc/local_dc.c
@@ -308,7 +308,7 @@ int loadMessageBuffer(	int nsys,
       ixDataBlock->header.dcuheader[db].timeNSec = shmIpcPtr[ii]->bp[lastCycle].timeNSec;
       crcLength = shmIpcPtr[ii]->bp[lastCycle].crc;
       // Set Status -- as running
-      ixDataBlock->header.dcuheader[ii].status = 2;
+      ixDataBlock->header.dcuheader[db].status = 2;
       // Indicate size of data block
       // ********ixDataBlock->header.dcuheader[db].dataBlockSize = shmIpcPtr[ii]->dataBlockSize;
       ixDataBlock->header.dcuheader[db].dataBlockSize = crcLength;
@@ -317,7 +317,7 @@ int loadMessageBuffer(	int nsys,
         ixDataBlock->header.dcuheader[db].dataBlockSize = DAQ_DCU_BLOCK_SIZE;
       // Calculate TP data size
       ixDataBlock->header.dcuheader[db].tpCount = (unsigned int)shmTpTable[ii]->count & 0xff;
-      ixDataBlock->header.dcuheader[db].tpBlockSize = sizeof(float) * modelrates[ii] * ixDataBlock->header.dcuheader[ii].tpCount /  DAQ_NUM_DATA_BLOCKS_PER_SECOND;
+      ixDataBlock->header.dcuheader[db].tpBlockSize = sizeof(float) * modelrates[ii] * ixDataBlock->header.dcuheader[db].tpCount /  DAQ_NUM_DATA_BLOCKS_PER_SECOND;
 
       // Copy GDSTP table to xmission buffer header
       memcpy(&(ixDataBlock->header.dcuheader[db].tpNum[0]),