Fixing infinite netid check loop