Fix double painting the chart