fixing resizing issues 6