plotting bug