Minor fix.
Improved the speed of switching files when having many selected graphs with many data points.