Network detection not detecting network type