Tools.GetSurroundingElements very uncooperative

Update: I can now get it work consistently, but I have to clear the inputs into the getsurroundingElements node, run in, then plug the inputs in and run it again every time.