plot bugfix