1099Q on 529 rollover to Roth are gains taxed by Federal

I entered the 1099q for 529 to Roth on my son's taxes in TurboTax and I see he is being taxed on the gains.  Is that correct?  I thought there was no Federal tax on this.