Fixes duplicating ports in connection popover.