fix closing class attr