Bug fixing in 3D MPI refinement.