xpath BUGFIX typo
diff --git a/src/xpath.c b/src/xpath.c
index 678547a..657925f 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -5259,7 +5259,7 @@
         set->val.nodes[i].pos = pos;
         *replaced = 1;
 #ifdef LY_ENABLED_CACHE
-        set_remove_node_hash(set, set->val.nodes[i].node, set->val.nodes[i].type);
+        set_insert_node_hash(set, set->val.nodes[i].node, set->val.nodes[i].type);
 #endif
     } else {
         set_insert_node(set, node, pos, LYXP_NODE_ELEM, i);