buildAttributeString() fixed