diff --git a/matlab/compute_model_moments.m b/matlab/compute_model_moments.m
index 7b8e514571a02e020718f0b6596d03f9e766f065..1c89a5e07dfee184832b99247aff6ce7f5d892af 100644
--- a/matlab/compute_model_moments.m
+++ b/matlab/compute_model_moments.m
@@ -28,4 +28,5 @@ function moments=compute_model_moments(dr,M_,options_)
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-moments = th_autocovariances(dr,options_.varlist,M_,options_);
+[ivar,vartan,options_] = get_variables_list(options_,M_);
+moments = th_autocovariances(dr,ivar,M_,options_,options_.nodecomposition);