fix class attribute