plotting bug fix