Fix for cases where there are no categories.