Fixed the round-off error