Fix num_networks