fixing resizing issues 5