fix dived and not rounding issue