fix check for existing network