fixed bug in make_bar_graph