Caching off the category names and fixing a bug