Fix bug rendering bar chart