fixing resizing issues 25