fix bug related to set default value