diff --git a/matlab/method_of_moments/method_of_moments.m b/matlab/method_of_moments/method_of_moments.m
index 9d6736116970e99fe1ccede3328ac0c27459f32b..b931bb0573b48f5f961195649d5f4d59272032e6 100644
--- a/matlab/method_of_moments/method_of_moments.m
+++ b/matlab/method_of_moments/method_of_moments.m
@@ -788,7 +788,7 @@ for i = 1:length(optimizer_vec)
         case 10
             fprintf('\n  %s=10): simpsa',str);
         case 11
-            fprintf('\n  %s=11): online_auxiliary_filter',str);
+            error('\nmethod_of_moments: online_auxiliary_filter (mode_compute=11) is only supported with likelihood-based estimation techniques');
         case 12
             fprintf('\n  %s=12): particleswarm',str);
         case 101
diff --git a/matlab/method_of_moments/method_of_moments_objective_function.m b/matlab/method_of_moments/method_of_moments_objective_function.m
index 745f8570e13bda062f73fcb874abdd8c7bede040..41c3dcc79ccbd9192753aacf359d1356213b8234 100644
--- a/matlab/method_of_moments/method_of_moments_objective_function.m
+++ b/matlab/method_of_moments/method_of_moments_objective_function.m
@@ -64,6 +64,9 @@ junk2        = [];
 % 1. Get the structural parameters & define penalties
 %--------------------------------------------------------------------------
 
+% Ensure that xparam1 is a column vector; particleswarm.m requires this.
+xparam1 = xparam1(:);
+
 M_ = set_all_parameters(xparam1, estim_params_, M_);
 
 [fval,info,exit_flag]=check_bounds_and_definiteness_estimation(xparam1, M_, estim_params_, Bounds);