The apoc.path.subgraphNodes function returns multiple subgraphs when end nodes filter is specified

Hello guys!

I'm using apoc.path.subgraphNodes to get a subgraph, but I'm struggling with a problem

CALL apoc.path.subgraphNodes(p, {
labelFilter: ">Friend|-BannedHuman|+Human", limit: 15000})

The problem is it only returns nodes with a "Friend" label, and even those that need Human nodes to be connected to the main graph. That bug makes the subgraphNodes function return multiple subgraphs.

Screenshot 2022-10-29 at 10.56.00 PM.png

What I expect from >Friend filter is to get a minified version of the subgraph without the filter. How to achieve it?