diff --git a/openair1/SCHED/phy_procedures_lte_eNb.c b/openair1/SCHED/phy_procedures_lte_eNb.c
index 8e2cdf39f2aaf44e4df573c2690b74836c1ee760..6a785ebf330c9cfaaeea72b26c0410992b47a7df 100755
--- a/openair1/SCHED/phy_procedures_lte_eNb.c
+++ b/openair1/SCHED/phy_procedures_lte_eNb.c
@@ -2547,7 +2547,6 @@ void cba_procedures(const unsigned char sched_subframe,PHY_VARS_eNB *phy_vars_eN
   const int frame = phy_vars_eNB->proc[sched_subframe].frame_rx;
   uint16_t rnti=0;
   int ret=0;
-  int i;
 
   num_active_cba_groups = phy_vars_eNB->ulsch_eNB[UE_id]->num_active_cba_groups;
   
@@ -2578,7 +2577,7 @@ void cba_procedures(const unsigned char sched_subframe,PHY_VARS_eNB *phy_vars_eN
       rx_ulsch_emul(phy_vars_eNB,
 		    subframe,
 		    phy_vars_eNB->eNB_UE_stats[UE_id].sector,  // this is the effective sector id
-		    i);
+		    UE_id);
     }
     
 #endif