diff --git a/include/eigenpy/eigen-typedef.hpp b/include/eigenpy/eigen-typedef.hpp
index d195d11a688a6187e1ef3776f3c2b2993275cabb..9d343ff2c7ce985dab1fa0e6917acc7ea0fa7854 100644
--- a/include/eigenpy/eigen-typedef.hpp
+++ b/include/eigenpy/eigen-typedef.hpp
@@ -32,6 +32,7 @@
   EIGENPY_MAKE_FIXED_TYPEDEFS(Type, Options, TypeSuffix, 2)           \
   EIGENPY_MAKE_FIXED_TYPEDEFS(Type, Options, TypeSuffix, 3)           \
   EIGENPY_MAKE_FIXED_TYPEDEFS(Type, Options, TypeSuffix, 4)           \
-  EIGENPY_MAKE_TYPEDEFS(Type, Options, TypeSuffix, 1, 1)
+  EIGENPY_MAKE_TYPEDEFS(Type, Options, TypeSuffix, 1, 1)              \
+  typedef Eigen::SparseMatrix<Scalar, Options> SparseMatrixX##TypeSuffix
 
 #endif  // ifndef __eigenpy_eigen_typedef_hpp__
diff --git a/include/eigenpy/eigenpy.hpp b/include/eigenpy/eigenpy.hpp
index 97407d3495b6a3c196211a8d9c4ab62b5b00f8d5..5bbdc1b6355e5f080af6bb5ed0d0c7a74fc999d0 100644
--- a/include/eigenpy/eigenpy.hpp
+++ b/include/eigenpy/eigenpy.hpp
@@ -58,7 +58,7 @@ EIGEN_DONT_INLINE void exposeType() {
   ENABLE_SPECIFIC_MATRIX_TYPE(RowVectorXs);
   ENABLE_SPECIFIC_MATRIX_TYPE(MatrixXs);
 
-  enableEigenPySpecific<Eigen::SparseMatrix<Scalar, Options> >();
+  enableEigenPySpecific<SparseMatrixXs>();
 }
 
 template <typename Scalar>