Warning with class attribute