fix fixHeightRatio