Amending the amendment 1040x

I amended state taxes but now the 1040x is wrong. My original refund of X amount was never issued because there was an error. The amendment now shows my refund/credit as exactly $0. It’s too coincidental that the amendment changed by exactly the amount(-X) I was to be refund when no number values were changed. What did I do wrong? I need to amend the amendment. Lol!