diff --git a/openair-cn/UTILS/HASHTABLE/hashtable.c b/openair-cn/UTILS/HASHTABLE/hashtable.c
index 23149c138947776d3f48c7ac30ce469046e580b5..48d806cd0f422107c4559ddaa8107f0846534388 100755
--- a/openair-cn/UTILS/HASHTABLE/hashtable.c
+++ b/openair-cn/UTILS/HASHTABLE/hashtable.c
@@ -233,7 +233,7 @@ hashtable_rc_t hashtable_remove(hash_table_t *hashtblP, const uint64_t keyP)
   node=hashtblP->nodes[hash];
 
   while(node) {
-    if(node->key != keyP) {
+    if(node->key == keyP) {
       if(prevnode) prevnode->next=node->next;
       else hashtblP->nodes[hash]=node->next;