fixed weird bar chart bug