fixes to lineplotter