Fixed bug in search_networks