Fix read_attribute()