Retirement tax questions

I answered that all of the RMD had been returned. After that TurboTax  indicated that I would not owe any taxes. Later,  under the detailed itemization, the RMD was listed as taxable. If it makes a difference, the RMD paid out in part to me and in part as a qualified charitable distribution, but I returned the whole RMD.