fix dedup script