IL & NJ filing

I live and earn income in NJ, and my husband lives in Illinois but has no income. When I tried to file my return, it showed that I owe IL tax. How do I fix this, because we didn't earn any income in IL, so why are they saying that we owe taxes? I don't know if it's because IL thinks I am a full-time resident in IL, but I'm not. If it is, how do I fix this?