diff --git a/exec/load/frame.js b/exec/load/frame.js
index 9d6a1466b357cabda10c1495caa1e54525872f39..f04a04f1045d2ea231a73a0b460dd757473374dd 100644
--- a/exec/load/frame.js
+++ b/exec/load/frame.js
@@ -1266,12 +1266,6 @@ function Frame(x,y,width,height,attr,frame) {
 		this.setData(position.cursor.x,position.cursor.y,ch,attr,true);
 	}
 	function init(x,y,width,height,attr,frame) {
-		this.x = x;
-		this.y = y;
-		this.width = width;
-		this.height = height;
-		this.attr = attr;
-
 		if(frame instanceof Frame) {
 			properties.id = frame.child.length;
 			properties.display = frame.display;
@@ -1283,6 +1277,12 @@ function Frame(x,y,width,height,attr,frame) {
 			properties.display = new Display(x,y,width,height);
 		}
 		
+		this.x = x;
+		this.y = y;
+		this.width = width;
+		this.height = height;
+		this.attr = attr;
+
 		for(var h=0;h<this.height;h++) {
 			properties.data.push(new Array(this.width));
 			for(var w=0;w<this.width;w++) {