fix bug in set option return value

fix bug in set option return value