fix typo in detach_subnets()