Realized Gain/Loss Total not matching Summary Amount

When downloading the CSV file. The total realized gain and loss for the year to date does not match to the Tax summary of total realized gain / loss (LT+ST) . Now I have to go line by line by line to figure this one. I been on it for weeks . If the IRS request for backup, the backup dont add up.