fixed bar chart issue