fix int * ratio rounding