fix rerendering of chart issue