diff --git a/src/library/kernel_bindings.cpp b/src/library/kernel_bindings.cpp index 3c0f7aed0..ea232146b 100644 --- a/src/library/kernel_bindings.cpp +++ b/src/library/kernel_bindings.cpp @@ -1182,7 +1182,7 @@ static int import_modules(lua_State * L) { if (is_environment(L, 1)) return import_modules(to_environment(L, 1), L, 2); else - return import_modules(environment(), L, 1); + return import_modules(mk_environment(), L, 1); } static int import_hott_modules(lua_State * L) {