Minor fixes related to the latest update of the network detection algorithm