Fixed bugs in plotters