Oops, spoke a little too soon when I said all better.
It looked good on my real life code, but I then tried the simple example I posted earlier. It looked good at first, but then I turned off the "List variables" option. Doing that removed $st1 from the display, but $st2 and $st3 were still shown (before the fix, all three were removed by turning off that option).