cap items to maximum in their array, in case the user manually entered
a number larger than the max allowed item in the "restore" modal