Fix getProperties, now it returns a map, not a list