Fix bug with category loading.