After you file

I made a mistake claiming the recovery rebate and when I realized it, I panicked and filed an amended return immediately. 
(I didn’t realize until later when I read more about it that the IRS would correct my mistake and I shouldn’t file an amendment.)


My actual refund should have been $1149 but I accidentally claimed $2549.

When I filed the amended return, it stated I owed $1400 back (because it was assuming my refund was in excess of $1400) even though I didn’t receive it yet.  And like a fool, I submitted bank info for the IRS to auto debit…


My original return was submitted 3/1 is currently still being processed but the IRS already debited $1400 from 
my account for the amended return!!! I didn’t think they would debit me until they processed the paperwork. 

 

I know i screwed up big time but just trying to understand what will happen?

When they process my original return, will they automatically correct the refund amount and reduce it by $1400? 
But then when they process my amended return, will they realize they already corrected the mistake and give me $1400 back that they withdrew from my account prior to processing my returns? 
How do I get my $1400 back?