Fixed resizing crash