Backdoor Roth - Transaction in 2023 for 2022

Hi - Would love some guidance.  

 

In 2022 I made 2 $6k contributions to a Traditional IRA and converted it to a Roth IRA.  One on 1/6/23 and one on 1/12/23.  I was intending for the first $6K contribution to be for the 2022 tax year and the 2nd contribution for the 2023 tax year.  

 

I now received a CP2000 and the $6K is being taxed as retirement income.  How can I correct this?

 

Thank you