Fixed missing pragma omp atomic