diff --git a/initialize_fame_toolbox.m b/initialize_fame_toolbox.m
index 79c0749f6fc19723833682b5e92a2fcce31a703f..5b37a3420bdf1c0a7710a7eed0c808b1d17399ea 100644
--- a/initialize_fame_toolbox.m
+++ b/initialize_fame_toolbox.m
@@ -18,7 +18,7 @@ function initialize_fame_toolbox()
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % Get path to the current script.
-[FAME_TOOLBOX_ROOT_DIRECTORY, ~, ~] = fileparts(which('initialize_fame_toolbox'));
+[FAME_TOOLBOX_ROOT_DIRECTORY] = fileparts(which('initialize_fame_toolbox'));
 
 % Load path to TIMEIQ Java library.
 try
@@ -40,4 +40,4 @@ if isempty(strfind(path, [FAME_TOOLBOX_ROOT_DIRECTORY filesep() 'src']))
 end
 if isempty(strfind(path, [FAME_TOOLBOX_ROOT_DIRECTORY filesep() 'src' filesep() 'tools']))
     addpath([FAME_TOOLBOX_ROOT_DIRECTORY filesep() 'src' filesep() 'tools'])
-end
\ No newline at end of file
+end