diff --git a/matlab/+mom/objective_function.m b/matlab/+mom/objective_function.m
index 2d82560a4c503820e3779fb0f2ed1ca9769cb4d1..53916fe7509a74d33c67d2e830a3cb5006a8de7b 100644
--- a/matlab/+mom/objective_function.m
+++ b/matlab/+mom/objective_function.m
@@ -289,7 +289,7 @@ if strcmp(options_mom_.mom.mom_method,'IRF_MATCHING') && strcmp(options_mom_.mom
     end
     % do transformations on model irfs if irf_matching_file is provided
     if ~isempty(options_mom_.mom.irf_matching_file.name)
-        [modelIrf,check] = feval(str2func(options_mom_.mom.irf_matching_file.name),modelIrf, M_, options_mom_);
+        [modelIrf,check] = feval(str2func(options_mom_.mom.irf_matching_file.name),modelIrf, M_, options_mom_, dr.ys);
         if check
             fval = Inf;
             info(1) = 180;