Fix resizing the display.