fixed bug in find_networks