fixing resizing