Non Wisconsin resident tax refund

Hello,

I was mistakenly taxed for WI and IL (I am an IL resident), trying to file 1NPR to get WI tax back through Turbotax.

However I am not getting the full tax back. I have some capital gains and dividends, it is included in WI tax form 1NPR and in IL. Was taxed $317, however the refund is only $85. In the form I specified a resident of IL and a non resident.

Should I not get the full amount?