Fixed issue with upper threshold values in Correlation simulation.