[graph] fix redraw on resize error