Fixed a chart.
Various bug fixes.