Fixed an issue with fetching categories by ID