[Here](https://github.com/aichaos/rivescript-java/blob/04abeca7fffeaf0783e6aa9c2fe84c34829e5a67/rivescript-core/src/main/java/com/rivescript/RiveScript.java#L794) the code is missing a loop on all the entries of the list within the value of the map or maybe this? ``` if(entry.getValue().contains(UNDEF_TAG)) { this.array.remove(entry.getKey()); } else { this.array.put(entry.getKey(), entry.getValue()); } ```