Index: /issm/trunk/src/m/utils/Exp/expmaster.m
===================================================================
--- /issm/trunk/src/m/utils/Exp/expmaster.m	(revision 3019)
+++ /issm/trunk/src/m/utils/Exp/expmaster.m	(revision 3020)
@@ -25,4 +25,7 @@
 %   See also EXPDOC
 
+%recover options
+options=pairoptions(varargin{:});
+
 %Some checks
 if ~nargin | nargout
@@ -30,5 +33,5 @@
 elseif exist(newfile,'file'),
 	%recursive call to expmaster if file already exists
-	if nargin==1,
+	if ~exist(options,'include'),
 		expmaster(newfile,'include',newfile,varargin{:});
 		return;
@@ -42,7 +45,4 @@
 	end
 end
-
-%recover options
-options=pairoptions(varargin{:});
 
 %Add default options
