fixed a bug in the parallel code