State Refund vs Federal balance due is confusing

OK This is confusing. The Federal has a balance due of $259, the State has a REFUND of $1664. Of which I

Credited $164 to 2023, so the NET refund for the State is now $1500.00 At the end when it tells you your refund amount, it now says $1241.00????? I added the $1241.00 +[259.00]= $1500.00?? WTW is TT doing? I NEVER authorized NO W/D of the Balance due of the Federal!!! I looked trough all the fileable forms and I can't find anything that shows where I said ", PAY MY BAL. DUE". How do I fix this mess?