fixed typo in parallelism algorithm.