fix network topology check