Deductions & credits

I donated some appreciated stock to a donor advised fund.  My understanding is the donation is capped at 30% of my AGI.  However, in the "Charitable Deduction Limits Worksheet for Current Year Contributions", the Turbotax program entered my donation under Section E of the form - Contributions subject to the limit based on 20% AGI, rather than under Section D of the form - Contributions of capital gain property subject to limit based on 30% of AGI.  This results in a substantial decrease in the amount of my charitable deductions.  Is there a program glitch???