Fix bug with bar-chart