Calculation precision fix