diff --git a/arangod/V8Server/V8Traverser.cpp b/arangod/V8Server/V8Traverser.cpp index 48c294efe6..687d4cf4e9 100644 --- a/arangod/V8Server/V8Traverser.cpp +++ b/arangod/V8Server/V8Traverser.cpp @@ -750,7 +750,7 @@ static void AnyNeighbors(std::vector& collectionInfos, if (visited.find(std::string(v, l)) == visited.end()) { std::string tmp(v, l); if (depth >= opts.minDepth) { - if (opts.matchesVertex(v)) { + if (opts.matchesVertex(tmp)) { distinct.emplace_back(tmp); } }