Lived in 2 states. Employer only paid tax to PA. I overpaid PA taxes, but owed taxes to OK. How to i report the PA refund was actually over payment used to pay OK?

My employer messed up my w2 and paid all taxes to the state of PA in 2016. So when filing my 2016 taxes, I had to fix all that. I got a refund from PA.  It was actually not a refund, it was a overpayment because I moved to Oklahoma mid year.  So I had to file my taxes in a way that I used my PA refund to pay the taxes my employer did not pay to Oklahoma. 

I want to make sure I don't have to pay taxes on my PA refund, since it was not a true refund.  It was an overpayment that PA owed me.  I then used that overpayment to pay taxes i owned to OK.  

How to I report my PA tax refund in a way that shows it was not a true refund but money they had to give me back and money I then had to pay to another state? Trying not to pay extra taxes.  Do I show I paid a loss to Oklahoma too?  I need help.