fixed Attribute detection.