Truncating duplicate traces and legend text

I have a graph with two duplicate traces, along with a legend.  I wanted to display a subset of each trace to represent two different periods, but this causes issues with the legend, even if I change the trace labels to something other than the default ones.  Specifically, the legend text gets messed up for any duplicate traces after the one that was truncated.  However, the first legend entry after the truncated trace is messed up differently from the subsequent duplicated traces.  Traces that are not duplicates don't seem to be affected.  I'm on Windows 10 with Igor 9.0.2.4, but not in Igor 8 (Win10).  The attached ipf should replicate the issue.

Thanks.

 

Edit: This issue also shows up if you do Replace Wave from one of the menus.

Legend code and text after truncating duplicate traces Truncate_Duplicate_Traces_0.ipf

I think this bug was just fixed last week. Try the nightly build (Help->Igor Pro Nightly Builds (I think that's right...))