diff --git a/matlab/utilities/dataset/makedataset.m b/matlab/utilities/dataset/makedataset.m
index 08b91229c016a4954c8102022712acc379866458..d6ff48d4d01d0d65d3891081c27df8c9a8d0dd20 100644
--- a/matlab/utilities/dataset/makedataset.m
+++ b/matlab/utilities/dataset/makedataset.m
@@ -123,7 +123,8 @@ end
 
 if ~set_time_default_initial_period && ~dataset_default_initial_period
     % Check if dataset.init and options_.initial_period are identical.
-    if  ~isequal(DynareOptions.initial_period, DynareDataset.init)
+    if DynareOptions.initial_period>DynareDataset.init
+        %if  ~isequal(DynareOptions.initial_period, DynareDataset.init)
         error('The date as defined by the set_time command is not consistent with the initial period in the database!')
     end
 end