When you refile complete the FILE tab step 2 to change how you are paying.
Or say you will mail a check and pay directly at https://www.irs.gov/payments
Then your payment won't be too late.