fix bug in openmp variable declaration