update chart bug