Fixed bug with program crash when calculating new calibration while
older plot stil active