fixed the app's crashes after QCustomPlot update