After you file

Well efiling amended returns is brand new and it is bound to have glitches ... so it sounds like you accidentally authorized the payment a second time when it was not required ... so when the IRS figures out you paid twice they will normally refund the excess.