fixed parallel execution bug