Logic bug fixed in NetworkDiscover.js