fix issue when guessing network type