Fixed the resizing