fix bug for default value as proc when there is given options values