fixing parameterSweep for windows compatibility