bug fix Plot