Fix duplicate class attribute