diff --git a/src/utilities/x13/select_x13_binary.m b/src/utilities/x13/select_x13_binary.m
index fcb096a17feb5b54ccbc37340ba3050a7f5913be..9725cd715b420f27d2baedc124eca5d41e97aec9 100644
--- a/src/utilities/x13/select_x13_binary.m
+++ b/src/utilities/x13/select_x13_binary.m
@@ -15,7 +15,7 @@ function x13_binary = select_x13_binary()
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-dseries_src_root = strrep(which('initialize_dseries_toolbox'),'initialize_dseries_toolbox.m','');
+dseries_src_root = strrep(which('initialize_dseries_class'),'initialize_dseries_class.m','');
 dseries_x13_root = sprintf('%s%s%s%s%s%s%s', dseries_src_root, '..', filesep(), 'externals', filesep(), 'x13', filesep());
 
 if ismac()