bar chart bugfix