bug in partition_network