Fixed variable scope for OpenMP section.