Fix Ui bug when too many allowed values