Fix orphaned read_attributes reference