fix bar chart length