Created attachment 116566 [details] [review] another attempted fix ok, this is my attempt at fixing this. upon a very quick perusal, it seems like it works for the sample program. i like this a little more not only because i wrote it, but also because it avoids touching code that i barely understand and seems very fragile (including the graph code). could you give this a shot and see if it also fixes your issues?