fix errors in omp