fixed sp error parallelization