diff --git a/openair1/PHY/LTE_TRANSPORT/dci_tools.c b/openair1/PHY/LTE_TRANSPORT/dci_tools.c
index e246fe46344a67548b75380986c81634eeca71f4..90535dbd708116b62833cdd9030ebafdb0da6475 100755
--- a/openair1/PHY/LTE_TRANSPORT/dci_tools.c
+++ b/openair1/PHY/LTE_TRANSPORT/dci_tools.c
@@ -4637,13 +4637,13 @@ int generate_ue_dlsch_params_from_dci(int frame,
       break;
     }
 
-    dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
-
     if (harq_pid>=8) {
       LOG_E(PHY,"Format 1: harq_pid=%d >= 8\n", harq_pid);
       return(-1);
     }
 
+    dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
+
     if((mcs>28) && (dlsch0_harq->round == 0) )
     {
       // DCI false detection