Fixed getAttributesValues method