diff --git a/matlab/tfgm/subregions/create_subregions.m b/matlab/tfgm/subregions/create_subregions.m
index d9458146503f17cce2f3a4177771b1a192e6d766..2e01f4e1d585890ebf0a604896c177c86f70927e 100644
--- a/matlab/tfgm/subregions/create_subregions.m
+++ b/matlab/tfgm/subregions/create_subregions.m
@@ -53,7 +53,7 @@ n_labels_max = n_labels;
 
 while max(pq_norms_val(:))>tol
     %Merge each pair (p, q), q < p, such that pq_norms[p, q] > tol
-    to_be_updated = true(zeros(n_labels,1));
+    to_be_updated = boolean(zeros(n_labels,1));
     
     while max(pq_norms_val(:))>tol
         [i_p, i_q] =  find(pq_norms_val == max(pq_norms_val(:)));