fixed some resizing issues