fix option setting bug