Fix categories API