I collected unemployment in 2017 but opted to have taxes taken out so that I wouldn't be hit by a large tax bill. I still received a 1099-G. Is this right?

The form says that Box 2 shows refunds, credits or offsets of state or local income tax I have received.  I'm confused.