Fixed bugs in serial VEGAS