Fixed double precision issues.