Fixes node connecting to itself.