Fixed a ui bug with the chart