Fixed a bug related with subnets creation