fixed redraw error, now clears plots properly