State tax filing

So I’m paying tax twice because that’s what it amounts to. I get a $1000 refund from Missouri but owe $1600 to Illinois … seems off to me still. Like I missed a credit or something.