Hongyi: fix bugs in sequential and parallel task