Fix ratio calculation.