fix network interface condition