fixing text redraw