fixed parallel execution with empty tasks array