Strange crash when toggling visible flags

You can ignore the above – I was still crashing after these changes.

I had a silly bug in an async function which updated the top chart…it was in the except clause which did not help.