Retirement tax questions

I inherited the RMD for 2017from husband's retirement IR. This $ is shown in box 2a, Fed income tax withheld is shown in box 4, box 7 code is "4" but TT didn't consider this income, so it refunds all tax  withheld plus.