Fixed resizing on restore