**Describe the bug** It failed in query `endV()` after PathExpand, e.g., `g.V().both("1..3","knows").with("RESULT_OPT","ALL_V").endV()`