diff --git a/openair2/RRC/NR/MESSAGES/asn1_msg.c b/openair2/RRC/NR/MESSAGES/asn1_msg.c
index e6be4365d6393e0a92645cd3ecdbb1b2dbd973b7..c96819f6c20c4e473229eb365f0d4416fd7c6cc7 100644
--- a/openair2/RRC/NR/MESSAGES/asn1_msg.c
+++ b/openair2/RRC/NR/MESSAGES/asn1_msg.c
@@ -619,7 +619,12 @@ uint8_t do_RRCReject(uint8_t Mod_id,
     dl_ccch_msg.message.choice.c1          = CALLOC(1, sizeof(struct NR_DL_CCCH_MessageType__c1));
     dl_ccch_msg.message.choice.c1->present = NR_RRCReject__criticalExtensions_PR_rrcReject;
 
+    dl_ccch_msg.message.choice.c1->choice.rrcReject = CALLOC(1,sizeof(NR_RRCReject_t));
     rrcReject = dl_ccch_msg.message.choice.c1->choice.rrcReject;
+
+    rrcReject->criticalExtensions.choice.rrcReject           = CALLOC(1, sizeof(struct NR_RRCReject_IEs));
+    rrcReject->criticalExtensions.choice.rrcReject->waitTime = CALLOC(1, sizeof(NR_RejectWaitTime_t));
+
     rrcReject->criticalExtensions.present = NR_RRCReject__criticalExtensions_PR_rrcReject;
     rrcReject->criticalExtensions.choice.rrcReject->waitTime = &waitTime;
 
diff --git a/openair2/RRC/NR/rrc_gNB.c b/openair2/RRC/NR/rrc_gNB.c
index 37a5d7420d1e65390daa306b0b730b108bdcbb32..99711d0e98d11b8521c00fc36d1575d48421c009 100644
--- a/openair2/RRC/NR/rrc_gNB.c
+++ b/openair2/RRC/NR/rrc_gNB.c
@@ -850,7 +850,7 @@ int nr_rrc_gNB_decode_ccch(protocol_ctxt_t    *const ctxt_pP,
                                 ue_context_p->ue_context.ng_5G_S_TMSI_Part1 = s_tmsi_part1;
                             }
                         }
-                    } else {
+                    } //else {
                         /* TODO */
                         LOG_E(NR_RRC,
                                 PROTOCOL_NR_RRC_CTXT_UE_FMT" RRCSetupRequest without random UE identity or S-TMSI not supported, let's reject the UE\n",
@@ -859,7 +859,7 @@ int nr_rrc_gNB_decode_ccch(protocol_ctxt_t    *const ctxt_pP,
                                                    rrc_gNB_get_ue_context(gnb_rrc_inst, ctxt_pP->rnti),
                                                    CC_id);
                         break;
-                    }
+                    //}
                 }
 
                 if (ue_context_p != NULL) {