Fix chart redrawing issues