Is there a bug subtracting the rmd from the total amount withdrawn in a traditional ira? Is there any information available?

I have only 1 ira. I withdrew 29,014. My rmd is 5,597.