fixing resizing issues 22