Fixed the problem where it did not correctly detect if you were connected to the network.