fix bugs for concurrent pipeline