Fix off by one error in series titles.

Fix bug where titles are mislabed in the legend/key. A single series
would be identified as undefined and the rest would be identified as the
adjacent item.