Fixed nesting elements in attributes.