Retirement tax questions

Wait wait wait ... you cannot roll the RMD back into any kind of retirement account  even if you do not want it all.  The full RMD must come out of the IRA and stay out of the IRA.  So if that is what you did the IRS is correct.