Fix redraw bug.