Retirement tax questions

Ok now what did you put back?  Did you put back the ROTH to the regular IRA or the RMD you actually took out?  I think you owe tax on both.  And you can't put back the RMD.  So you probably need to take it out again.  @dmertz is the expert around here so hopefully he checks back in.