chart bug fix