Fix thw way to get attributes.