fixed bug in local executor due to refactoring