fix dedup