Fixed resizing problems