Fixed getCategories to return all categories