Fix bug with bar chart lengths.