Fixing multi-segment net-id bug