Fix errors in set code for option variables.