fixed a scaling bug in OMP