getCategories, fixes