fixing redraw