fixed resizing issues