Fix ratio when width < height.