fixing wrong attribute name