Fix issue with near-zero values.