fixing resizing issues