Fix redraw bug causing long pages