I withdrew an amount equal to the contributions I made to a Roth IRA (I'm 30). I don't think I owe taxes when withdrawing contributions, but TurboTax is saying I do.

I contributed 18,000 to a Roth IRA. I withdrew 18,000 last year, but I didn't touch the earnings from investments. It was an early distribution because I am 30 years old. TurboTax isn't giving me an option to say that that number was equal to contributions I made with post-tax income, and it's trying to tax that money again. Let me now if you have a solution. Thank you!