fix maximum number of options