Fix bug with significant digits