Fix parallelization bug.