1041 is not including capital gains from 1099DIV on form K1. So form 1041 is showing a taxable income in the amount of the capital gain. Do I enter someplace else?

Filing a 1041 for a final trust, only income is from one 1099 DIV.  The 1099DIV shows an amount in box 2a(Capital Gains) that I entered.  I checked that 100% of income was paid to beneficiary, but form K1 does not include the capital gain and results in the capital gain showing up on line 22 as income.  Should I enter the capital from 1099DIV elsewhere to make line 22 show 0 income?