fix for detect network