diff --git a/exec/load/frame.js b/exec/load/frame.js
index c8e6834b3893ecd30a569bcc7c80dbbbf8739c15..037513f581ba3d4e0a80fe39d924bb910e113660 100644
--- a/exec/load/frame.js
+++ b/exec/load/frame.js
@@ -129,7 +129,7 @@ function Frame(x,y,width,height,attr,parent) {
 		height:undefined,
 		attr:undefined,
 		display:undefined,
-		data:[[]],
+		data:[],
 		open:false,
 		ctrl_a:false,
 		curr_attr:undefined,
@@ -826,6 +826,8 @@ function Frame(x,y,width,height,attr,parent) {
 		if(attr == undefined)
 			attr = this.attr;
 		for(var y=0;y<properties.data.length;y++) {
+			if(!properties.data[y])
+				continue;
 			for(var x=0;x<properties.data[y].length;x++) {	
 				if(properties.data[y][x]) {
 					properties.data[y][x].ch = undefined;