Fixed a attribute bug.