Fix set options into exec function