Fix incorrect drawing of graph when a new TS is opened and analysed