fixed redraw error