Fix the order of redraw.