Fix numerical errors.