fix class attribute errors