 			if tmpIndexNode isnt node and tmpIndexNode.style
 				return
 			# check parent
-			tmpIndexNode = tmpIndexNode._parent
-			tmpSiblingNode = tmpIndexNode._previousSibling
-
-			# out of scope
-			if tmpIndexNode._documentStyle?.item is parent
-				return
+			if tmpIndexNode = tmpIndexNode._parent
+				tmpSiblingNode = tmpIndexNode._previousSibling
+
+				# out of scope
+				if tmpIndexNode._documentStyle?.item is parent
+					return
 		return
 
 	findItemParent: ->

		while tmpIndexNode
			# by previous sibling
			while tmpSiblingNode
				if tmpSiblingNode isnt node
					# get sibling item
					if tmpSiblingNode._documentStyle?.parentSet and (tmpSiblingItem = tmpSiblingNode._documentStyle.item)
						if tmpSiblingTargetItem = findItemWithParent(tmpSiblingItem, parent)

									item.previousSibling = tmpSiblingTargetItem
							return
					# check children of special tags
					else unless tmpSiblingNode._documentStyle
						tmpIndexNode = tmpSiblingNode
						tmpSiblingNode = utils.last tmpIndexNode.children
						continue
