Fix application order of exec option