diff --git a/tests/pac/trend-component-19-growth-lin-comb/example1.mod b/tests/pac/trend-component-19-growth-lin-comb/example1.mod
index 41c7a19902670128747cb41f19ecc0732199d0dd..daed6065c8a19b0db54f7b5e4a59621c1824dbfb 100644
--- a/tests/pac/trend-component-19-growth-lin-comb/example1.mod
+++ b/tests/pac/trend-component-19-growth-lin-comb/example1.mod
@@ -126,6 +126,7 @@ fprintf('Estimate of e_c_m: %f \n', e_c_m_iterative_ols)
 fprintf('Estimate of c_z_1: %f \n', c_z_1_iterative_ols)
 fprintf('Estimate of c_z_2: %f \n', c_z_2_iterative_ols)
 
-if any(abs(resid_nls-resid_iterative_ols).data > 1e-4)
+difference = abs(resid_nls-resid_iterative_ols);
+if any(difference.data > 1e-4)
    error('Iterative OLS and NLS do not provide consistent results.')
 end