 					log.warn "Style file `#{id}` can't be find"
 				return
 		else
-			while parent and not scope = parent.scope
-				parent = parent.parent
-
-
 			parent = @parent
 			loop
 				scope = parent?.scope or windowStyle
 				@item = scope.ids[id] or scope.mainItem.$?[id]
 				@item ?= scope.styles(id)
-				if @item or scope is windowStyle
+				if @item or ((not parent or not (parent = parent.parent)) and scope is windowStyle)
 					break
-				parent = parent.parent
 
 			unless @item
 				unless File.Input.test id

					mainItem: new Renderer[id]
					ids: {}
			else
				id = id.slice 'styles:'.length
				@scope = styles[id]?.withStructure()
			@isAutoParent = true
			if @scope
				@item = @scope.mainItem

			obj = @item.$
		else if 'text' of @item
			obj = @item
		else if @item.label? and 'text' of @item.label
			obj = @item.label

		if obj
			text = @node.stringifyChildren()
