Resizing fix