Security fix for categoriesminmax.