After you file

The IRS and state will probably catch the error and refund what is due you. Wait before doing anything.