Amended state return

While doing my 2024 Virginia tax return I noticed that I missed a deduction I should have taken in 2023. I completed the amended return and I should be getting a refund of $1,150., but the top of the filing document states that I have a balance due  of $1,817. The 2023 Virginia tax return summary shows a refund of $1150. Adding those 2 amounts is what I paid for that tax year. If I put that I'm paying by check and obviously never send it, would they see that they actually owe me a refund?

Why would an amended return show that I owe money and get a refund in the same document?

Thanks for any guidance.

TbT