Add `self.sum_duplicates()` before using self.data