Fix bug in initial executor deduction.