Small fix in getAll() in API.