fixing resizing issues 31