findCategoryById() repaired