Fixed bug of empty categories lists