fix option context

Option context should be inherited from scope.