Fix resizing.