 			if @isScope
 				@item.document.hide()
 			@item.parent = null
+		@item.visible = false
 
 		for child in @children
 			child.revert()

		if 'text' of @item or (@item.$ isnt null and 'text' of @item.$)
			@updateText()

		@updateVisibility()
		
		for name of @attrs

					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
					break
				parent = parent.parent

			unless @item
				unless File.Input.test id
