Fixed bug in attribute retrieval when attribute name is omitted.