solved small bug in scan_plotter