resizing fix