fix openmp implementation