Fixed the double precision issue