Fixed having duplicate tabs after SaveAs with existing file name.