_extract_attributes fix