Introduced a bug in remove_diarization_edges method