bug fixing for multifactor montecarlo