bugfix in mediatePlot()