fixing bug with setting options