Fixed a bug in the scatter plotter.