Fix subnetworks bug

Change-Id: If29afae51ddb7de0c3b5288584cb60738f8519d3