plotting bugfix