Fixed resizing issues