Fixed resizing issues, hopefully