fixing resizing issues 28