Fixed bug in setting range standard deviation.