fixed bug with get_omp_max_threads()