After you file

Of course if line 18 is wrong on the amended return the IRS will fix it for you automatically when they eventually process the return.