Eliminate infinite redraw.