After you file

Well you did find the error ... that is good.  Since the IRS also found the error and sent you a bill NOW is the correct time to amend the return to reduce the balance due if possible.