fixed error in class attribute