Fixed the time-history plotter so that it doesn't crash when opening large files