fixed window redraw