maybe fixed some resizing issues