fixes for 2d plotter