getallcategories criteria fix