I live in MA, work in RI. Paid taxes to both. Got 2 W-2s, different wages and state taxes. Filled one wage, 2 taxes. TT not able to adjust tax already paid to MA. Help.

While entering Federal W-2, under the state sections, I filled in the wages and tax for the earned state, RI. For MA, I entered $0 wages but  entered the actual Tax on the second W-2. At the end of State returns calculations,  first RI and then MA, Turbo Tax is not able to adjust the tax already paid while estimating MA's tax. How to get the credit for the MA state tax already paid, on MA's return?