fix fixWidthRatio