I took 3k from my IRA for a house downpayment on dec 3rd 2016. I want to put it back now during the 60 day IRA rollover period. Will I still get tax because it is 2017?

On december 9th 2016 I took out 3k from my fidelity IRA for a house downpayment.  I closed on the 23rd of december 2016.  I am still within the 60 day rollover period to return the money if I didn't use it correct?

I recieved a tax document (1099-R) from fidelity showing 3k as taxable income.  If I am putting the money back, do I just ignore that document?  If still have to report that money from 2016, then there is no point in putting the 3k back if I am getting taxed either way.

Does what I am saying make sense?  Any help please!!!