fix an attribute bug