plot bug fix