fixing setNetworkConnection