Added check to remove duplicated edge coming out of SCCs