fixed problem with setSubnets