bug fix in charts