Bug: sentry node has to stop iterating when it's equal to the current reference.