class attribute bugfix