would you mind posting the gh file with internalized geometries where that definition works correctly on whatever geometry of your choice?
here is a brief guide on how to internalise data, so you don’t have to post also the 3dm file: