Fix bug in Bar chart