After you file

If your positions in the substantially identical security are all closed, you should have no issues.