diff --git a/poem-jvm/src/javascript/movi/api/shape.js b/poem-jvm/src/javascript/movi/api/shape.js
index <HASH>..<HASH> 100644
--- a/poem-jvm/src/javascript/movi/api/shape.js
+++ b/poem-jvm/src/javascript/movi/api/shape.js
@@ -120,8 +120,8 @@ MOVI.namespace("model");
 		this.childShapes = {};			// reset childShapes map
 	
 		// create shape object for each child and append to childShapes map
-		for(key in childSh) { 
-			var child = childSh[key];
+		for(var i = 0; i<childSh.length; i++) { 
+			var child = childSh[i];
 			var subclass = _getSubclassForJSONObj(child, stencilset);
 			child = new subclass(child, stencilset, this);
 			this.childShapes[child.resourceId] = child;
Fixed bug that occurs when prototype was used along with the MOVI API

git-svn-id: <URL>