diff --git a/structr-core/src/main/java/org/structr/core/script/polyglot/wrappers/PolyglotProxyArray.java b/structr-core/src/main/java/org/structr/core/script/polyglot/wrappers/PolyglotProxyArray.java
index <HASH>..<HASH> 100644
--- a/structr-core/src/main/java/org/structr/core/script/polyglot/wrappers/PolyglotProxyArray.java
+++ b/structr-core/src/main/java/org/structr/core/script/polyglot/wrappers/PolyglotProxyArray.java
@@ -77,7 +77,7 @@ public class PolyglotProxyArray implements ProxyArray {
 		this.checkIndex(index);
 		updateListFromSource();
 
-		if (list.size() >= index) {
+		if (list.size() <= index) {
 
 			// Determine delta between current index and target index
 			long indexDelta = index -(list.size() -1);
Fixes bug in PolyglotProxyArray.