diff --git a/src/TNL/Containers/Vector.h b/src/TNL/Containers/Vector.h
index 336b4121e8cd0da3cdd3ce1f2caaf30fc4d15d15..2aa5e60ff5afbd717839caf87446a73549c58d97 100644
--- a/src/TNL/Containers/Vector.h
+++ b/src/TNL/Containers/Vector.h
@@ -404,7 +404,7 @@ public:
     * \param begin Index of the element in this vector which to begin with.
     * \param end Index of the element in this vector which to end with.
     */
-   void computeSegmentedExclusivePrefixSum( const IndexType begin, const IndexType end );
+   void computeExclusivePrefixSum( const IndexType begin, const IndexType end );
 
    template< typename FlagsArray >
    void computeSegmentedPrefixSum( FlagsArray& flags );
diff --git a/src/TNL/Matrices/Sparse_impl.h b/src/TNL/Matrices/Sparse_impl.h
index 18bc4ea71e4519ac07e35e305b6948c293b3888c..5886681752ec12e3b6a713331860f371dc8bd18f 100644
--- a/src/TNL/Matrices/Sparse_impl.h
+++ b/src/TNL/Matrices/Sparse_impl.h
@@ -52,7 +52,7 @@ Index Sparse< Real, Device, Index >::getNumberOfNonzeroMatrixElements() const
    IndexType nonzeroElements( 0 );
    for( IndexType i = 0; i < this->values.getSize(); i++ )
       if( this->columnIndexes.getElement( i ) != this-> columns &&
-          this->values.getElement( i ) != 0.0 )
+          this->values.getElement( i ) != RealType( 0 ) )
          nonzeroElements++;
    return nonzeroElements;
 }