Changing max-categories to encompass also text fields