A litte modify to Attribute.java