fix division algorithm's extra precision