remove duplicated cycle which might start from different node