Fix multiple parallel networks. This is a hack, needs cleanup soon.