Fix attribute name error