bugfix in plot call