adding support for handling NaN in scope digest.