Same income reported by two states

I live in MA and work in RI. My w2 shows the same income reported for both states. All income is from an RI source. The w2 makes it appear as if I have MA income as well. My RI return is fine, but it says I cannot efile for MA. Is there a way around this so I can efile? Did I fill something out wrong?