fixed text redraw bug