Bugfix with caching categories.