diff --git a/structr-core/src/main/java/org/structr/core/script/polyglot/PolyglotWrapper.java b/structr-core/src/main/java/org/structr/core/script/polyglot/PolyglotWrapper.java
index <HASH>..<HASH> 100644
--- a/structr-core/src/main/java/org/structr/core/script/polyglot/PolyglotWrapper.java
+++ b/structr-core/src/main/java/org/structr/core/script/polyglot/PolyglotWrapper.java
@@ -139,17 +139,6 @@ public abstract class PolyglotWrapper {
 		}
 	}
 
-	protected static List<Object> wrapIterable(ActionContext actionContext, final Iterable<Object> iterable) {
-
-		final List<Object> wrappedList = new ArrayList<>();
-
-		for (Object o : iterable) {
-
-			wrappedList.add(wrap(actionContext, o));
-		}
-		return wrappedList;
-	}
-
 	protected static List<Object> unwrapIterable(final ActionContext actionContext, final Iterable<Object> iterable) {
 
 		final List<Object> unwrappedList = new ArrayList<>();
@@ -208,6 +197,8 @@ public abstract class PolyglotWrapper {
 
 		public FunctionWrapper(final ActionContext actionContext, final Value func) {
 
+			this.actionContext = actionContext;
+
 			if (func.canExecute()) {
 
 				this.func = func;
Fixes minor issue in polyglot FunctionWrapper.