plotting bug fixes