@@ -238,7 +238,7 @@ Showable {
238238 function closeScope() {
239239 if (oldScope) {
240240 console.log("closing scope, oldscope - current scope", oldScope, scopeItem.scope)
241− oldScope.closeScope(oldScope);
241+ scopeThatOpenedScope.closeScope(oldScope);
242242 oldScope = null;
243243 }
244244 }