After you file

you have to wait for the IRS to handle the amendment and see what they do about it.

When IRS adjusts your 1040-X to zero tax due, you will get your $1,400 back.