diff --git a/src/TNL/Matrices/AdEllpack.h b/src/TNL/Matrices/AdEllpack.h
index 90faa91ee1ce9c561f6c57c2384c028677b8df63..1fcbc1494d5cd133dcaad116b2c5efde33824515 100644
--- a/src/TNL/Matrices/AdEllpack.h
+++ b/src/TNL/Matrices/AdEllpack.h
@@ -114,7 +114,7 @@ private:
 
    // friend class will be needed for templated assignment operators
    template< typename Real2, typename Device2, typename Index2 >
-   friend class ChunkedEllpack;
+   friend class AdEllpack;
    
 public: