diff --git a/exec/load/frame.js b/exec/load/frame.js
index f4b4e85a15b703096fa3f1df146bb1a8390519d8..b11e110a4be34014c3b5bbdbd69d9a1d5327d85f 100644
--- a/exec/load/frame.js
+++ b/exec/load/frame.js
@@ -884,6 +884,8 @@ function Frame(x,y,width,height,attr,parent) {
 		
 		if(attr)
 			properties.curr_attr = attr;
+		else
+			properties.curr_attr = this.attr;
 		var pos = position.cursor;
 
 		while(str.length > 0) {