fix duplicated entries