1040 Schedule A - Line 5a question.

Under line 5a, Turbotax Delux 2025 online, is adding up

 

- the Mass state taxes I paid for 2024 (in early 2025)

- and 2025 taxes withheld

 

Is this what it is supposed to do? 

As a result, Line 5d is greater than $40,000. It should be less.

I have already submitted my return online. How do I amend and correct this?