Resizing works perfectly