resizing fixes