diff --git a/spams_wrap/linalg/misc.h b/spams_wrap/linalg/misc.h
index c9937454ec6dac17ca84d8f4b1f3fe543d8376ea..9e6e9920a2c6ab81640a7f3c4f14cc0c94ba9b03 100644
--- a/spams_wrap/linalg/misc.h
+++ b/spams_wrap/linalg/misc.h
@@ -289,7 +289,7 @@ static inline int init_omp(const int numThreads) {
    int NUM_THREADS;
 #ifdef _OPENMP
    NUM_THREADS = (numThreads == -1) ? MIN(MAX_THREADS,omp_get_num_procs()) : numThreads;
-   omp_set_nested(0);
+   omp_set_max_active_levels(1);
    omp_set_dynamic(0);
    omp_set_num_threads(NUM_THREADS);
 #else
diff --git a/version b/version
index 06cf1864bbfdd422669326c630f5e24773d1f594..26d3e2e2565744616ff0e3839e65a4fcb4de99b2 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-2.6.3.1
\ No newline at end of file
+2.6.3.2
\ No newline at end of file