fixed joinSubTask bug