Changed text to attribute value
Fixed double bug