hostory duplicates fix