fix a bug of rounding