After you file

if you paid twice, resulting in overpayment, IRS computers should find a refund for you.

OTHERWISE,

File form 1040-X to report the larger "amount previously paid"  in excess.

 

@kingrogie14