fixed an omp crash