Retirement tax questions

In 2017,  I did a 401K rollover to IRA.  It was trustee to trustee.  I reported this on line 4a of 2018 Form 1040.  This showed up in Adjusted Gross Income on line 7.  The Medicare insurance rates are based on AGI. The problem I have in treating this as AGI, it kicks me and my wife up a bracket for Medicare insurance Premium Part B and D.  I don't know how one can fix this?  I see this as money went from one pocket to another, and not as income.  Any thoughts?