Fix for the find_all_edges error