fixed the inheritance problem with attributes