fix chart problem. still need more think on charts