Fixed bugs in the parallel helpers.