fix bug in MPI rayTrace (invalid write)