Fixed bug with listCategories