remove duplicated paths