Fixed errors in precise calculation