Retirement tax questions

But when I returned the amount to my retirement account, I returned the full amount to include the federal tax withheld.   So........I paid the original fed tax which was withheld, with which I have no control over, and then I RETURNED the SAME fed tax amount with the original RMD distribution back to my account.