fix bug for set min value and extend options