xpath BUGFIX do not remove previous log nodes
diff --git a/src/xpath.c b/src/xpath.c
index 60862ce..66a9dbf 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -9869,7 +9869,7 @@
     /* evaluate */
     ret = eval_expr_select(exp, &tok_idx, 0, set, options);
 
-    LOG_LOCBACK(1, 0, 0, 0);
+    LOG_LOCBACK(set->cur_scnode ? 1 : 0, 0, 0, 0);
     return ret;
 }