diff --git a/matlab/+occbin/IVF_posterior.m b/matlab/+occbin/IVF_posterior.m
index edb28041db9ac3a8ae827cdd5aaed0dff6f2b6e6..533f5f6692f5b02e70e083426b4fbf66c347eb20 100644
--- a/matlab/+occbin/IVF_posterior.m
+++ b/matlab/+occbin/IVF_posterior.m
@@ -50,7 +50,7 @@ function [fval,info,exit_flag,DLIK,Hess,SteadyState,trend_coeff,Model,DynareOpti
 DLIK=[];
 Hess=[];
 trend_coeff = [];
-obs = obs_info.rawdata;
+obs = dataset_.data;
 obs_list = DynareOptions.varobs(:);
 exit_flag   = 1;
 
diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m
index 89629275f4e7691bc998c6c9705d854ccea6bee6..9cf98c82f89fa5c993bd6ad84b0af1179c9f4357 100644
--- a/matlab/initial_estimation_checks.m
+++ b/matlab/initial_estimation_checks.m
@@ -76,6 +76,12 @@ if DynareOptions.order>1
     end
 end
 
+if DynareOptions.occbin.likelihood.status || DynareOptions.occbin.smoother.status
+    if DynareOptions.prefilter
+        error('initial_estimation_checks:: Occbin is incompatible with the prefilter option due to the sample mean generally not corresponding to the steady state with an occasionally binding constraint.')
+    end
+end
+
 if (DynareOptions.occbin.likelihood.status && DynareOptions.occbin.likelihood.inversion_filter) || (DynareOptions.occbin.smoother.status && DynareOptions.occbin.smoother.inversion_filter)
     err_index= find(diag(Model.Sigma_e)~=0);
     if length(err_index)~=length(DynareOptions.varobs)