NetworkDetect: fix crash