Fix bug in NetworkUtils @suren1986