chart display bug fix