fix for empty categories