fix duplicate correction (rename *both* duplicate records to avoid confusion if input ordering is different)