Capital gains seems wrong

Line 6 on 1040 says capital gains are $6,177

Schedule D line 8b says long term capital gains are -$37 which reflects two investment sales.

BUT, line 15 says net long term capital gains are $6,177 which goes to line 6 on 1040

I did have some taxable distributions from IRA's and those show up on line 4b on 1040

Form 8949 shows gains as -$37

I simply cannot understand where that capital gain of $6177 comes from.

Any help out there?  Thanks.