Fix retrieval of keys attributes in listKeys